package com.dr.domain;

import lombok.*;

/**
 * @Auther: yangjianfeng
 * @Date: 2025/07/03 10:27
 * @Description:
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Result {
    private Integer code;
    private String message;
    private Object data;
   public  static Result  success(Object obj){
       return new Result(200,"success",obj);
   }
    public  static Result  error(String errorMessage){
        return new Result(500,"error",errorMessage);
    }
}
